﻿angular.module('picShare').directive('userAlbums', function (userDataSvc) {
    return {
        restrict: 'C',
        scope: {
            userAlbums: "=useralbums",
            albName: "=albname"
        },
        templateUrl: "/Templates/Include-Templates/users-album-names.html",
        link: function (scope, element, attrs, controller) {
            //TODO Implement loadin new album in album list after it is created

            if (userDataSvc.user.albumNames !== null) {
                scope.userAlbums = userDataSvc.user.albumNames;
            }

           


        }

    };
});